package com.fengxiang.modules.web.controller;

import com.fengxiang.common.annotation.SysLog;
import com.fengxiang.modules.web.service.UserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableAutoConfiguration
public class UserController {

    @Autowired
    private UserService userService;

    @SysLog("查询用户信息")
    @ApiOperation(value = "查询用户信息", notes = "查询数据库用户信息")
    @GetMapping("/get")
    public Object list(){
       return userService.queryUser();
    }
}
